package bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import common.RowMapper;

public class ProductAttrRowMapper implements RowMapper<ProductAttr> {

	@Override
	public ProductAttr mapper(ResultSet rs) throws SQLException {
		ProductAttr pa=new ProductAttr();
		pa.setAttrid(rs.getInt("attrid"));
		pa.setAttrName(rs.getString("attr_name"));
		pa.setFirstCategoryid(rs.getInt("first_categoryid"));
		return pa;
	}

}
